package com.ruoyi.zhgd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.annotation.DataColumn;
import com.ruoyi.common.annotation.DataPermission;
import com.ruoyi.zhgd.domain.NAsphaltAlarm;
import com.ruoyi.zhgd.domain.bo.NAsphaltAlarmBo;
import com.ruoyi.zhgd.domain.vo.NAsphaltAlarmCountVo;
import com.ruoyi.zhgd.domain.vo.NAsphaltAlarmHandlerVo;
import com.ruoyi.zhgd.domain.vo.NAsphaltAlarmVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

/**
 * 沥青拌合站筛孔数据Mapper接口
 *
 * @author zyb
 * @date 2023-09-06
 */
public interface NAsphaltAlarmMapper extends BaseMapperPlus<NAsphaltAlarmMapper, NAsphaltAlarm, NAsphaltAlarmVo> {

    /**
     * 获取沥青预警分页列表
     * @param bo
     * @param build
     * @return
     */
    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    Page<NAsphaltAlarmVo> page(@Param("params") NAsphaltAlarmBo bo, Page<Object> build);

    /**
     * 统计预警信息
     * @param bo
     * @return
     */
    @DataPermission(
        @DataColumn(key = "deptName", value = "p.dept_id")
    )
    NAsphaltAlarmCountVo count(@Param("params") NAsphaltAlarmBo bo);

    /**
     * 预警处理
     * @param id
     * @return
     */
    NAsphaltAlarmHandlerVo handler(@Param("id") String id);
}
